import requests
import json
gaodeiAPI_key = "自己的高德api密钥"
def gan(address:" ",city:" "):
    params = {"key":gaodeiAPI_key,
              "city":city,
              "citylimit":True,
              "address":address,
              "output":"json"
             }
    response = requests.get("https://restapi.amap.com/v3/geocode/geo?parameters",params=params)
    r=response.json()
    return r